package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：IbeaconStatisticsParser   
* 类描述   ：Ibeacon数据统计实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-11-16 下午2:57:23   
*
 */
public class IbeaconStatisticsParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String time;
	private int num;
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		time = obj.optString("time");
		num = obj.optInt("num");
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public IbeaconStatisticsParser() {
		super();
	}
	public IbeaconStatisticsParser(String time, int num) {
		super();
		this.time = time;
		this.num = num;
	}
	@Override
	public String toString() {
		return "IbeaconStatisticsParser [time=" + time + ", num=" + num + "]";
	}
}
